package 上课day1;

import java.util.LinkedList;

public class project_demo4 {
	public static void main(String[] args) {
		Mystack mystack = new Mystack();
		
		System.out.println("*********入栈操作********");
		mystack.inputStack(new String("a"));
		mystack.inputStack(new String("b"));
		mystack.inputStack(new String("c"));
		mystack.inputStack(new String("d"));
		mystack.inputStack(new String("e"));
		mystack.inputStack(new String("f"));
		
		System.out.println("**********出栈************");
		for (int i = 0; i < mystack.size(); i++) {
			System.out.println(mystack.pullStack() + "   出栈");
		}
		
		
	}
}
